package com.example.springboot.config.anotation.conditionOn.myCondition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * 自定condition注解
 *
 * @Author:ChenZhangKun
 * @Date: 2021/5/6 21:12
 */
@Conditional({MyCondition.class})
@Target({ElementType.METHOD, ElementType.TYPE})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface MyConditionOnProperties {
    String name() default "";

    String havingValue() default "";
}
